import AllPosts from '../../components/posts/all-posts'

function AllPostsPage ({ posts }) {
  return <AllPosts posts={posts} />
}

export function getStaticProps () {
  return {
    props: {
      posts: [
        {
          slug: '11',
          title: '11',
          excerpt: '11',
          image: '不1.jpg',
          date: '11'
        },
        {
          slug: '22',
          title: '22',
          excerpt: '22',
          image: '不1.jpg',
          date: '11'
        },
        {
          slug: '33',
          title: '33',
          excerpt: '33',
          image: '不1.jpg',
          date: '11'
        }
      ]
    }
  }
}

export default AllPostsPage
